From: Giuseppe Scrivano Date: Tue, 28 Apr 2015 09:56:53 +0000 (+0200) Subject: pull: the commit size in the summary is not for the detached metadata X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~768 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=857a8525400ae70de80d37df9907f922058f92e2;p=ostree.git pull: the commit size in the summary is not for the detached metadata Use the size specified in the summary file only for the not detached metadata. Signed-off-by: Giuseppe Scrivano --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 503baa31..69f7123e 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -1228,7 +1228,7 @@ enqueue_one_object_request (OtPullData *pull_data, fetch_data->is_detached_meta = is_detached_meta; fetch_data->object_is_stored = object_is_stored; - expected_max_size_p = g_hash_table_lookup (pull_data->expected_commit_sizes, checksum); + expected_max_size_p = is_detached_meta ? NULL : g_hash_table_lookup (pull_data->expected_commit_sizes, checksum); if (expected_max_size_p) expected_max_size = *expected_max_size_p; else if (is_meta)